package spbsu;

public class Teacher {
    private static int nextid = 1;
    private int id;
    private String name;

    public Teacher (String name)
    {
        this.name = name;
        id = nextid++;
    }

    public int getId ()
    {
        return id;
    }

    public String getName ()
    {
        return name;
    }
}
